<@compress single_line=isCompress>
<!DOCTYPE html>
<html>
<head>
<title>支付宝商户列表</title> <#include "/pager/common/quote.html" />
<script src="${base}/assets/common/zxxFile.js"></script>
</head>
<body>
	<div class="body-center">
		<div class="html-panel query-panel" id="query_con">
			<div class="panel-header">
				<div class="panel-title">查询条件</div>
			</div>
			<div class="panel-content" id="menuMgrPanel">
				<form onsubmit="return false;" id="queryForm" class="form_style">
					<span class="spacing"><label>商户名称：</label><input type="text" name="shopName" style="width: 120px" id="shopName"/></span>
					<span class="spacing"><label>商户ID：</label><input type="text" name="id" style="width: 120px" id="id"/></span> 
					<span class="spacing"><label>所属渠道：</label><input type="text" name="channelName" style="width: 120px" id="channelName"/></span> 
					<span class="spacing"><label>商户类型：</label>
						<select id="shopType1" name="shopType" onchange="selectChildShopType1();" style="width: 120px">
							<option value="">==请选择==</option> 
							<#if shopType?? && shopType?size gt 0> 
								<#list shopType as r>
									<option value="${r.id}">${r.name}</option> 
								</#list> 
							</#if>
						</select>
					</span>
					<span class="spacing"><label>商户子类：</label>
                       	<select id="shopSubclass1" name="shopSubclass" style="width: 120px">
                          	<option value="">==请选择==</option>
                       </select>
                    </span> 
                    <span class="spacing"><label>登陆状态：</label> 
						<select name="status" style="width: 100px" id="status">
							<option value="">==请选择==</option>
							<option value="1">可登陆</option>
							<option value="0">不可登陆</option>
						</select> 
					</span> 
					<span class="spacing"><label>转账状态：</label> 
						<select name="payEnable" style="width: 100px" id="payEnable">
							<option value="">==请选择==</option>
							<option value="1">启用</option>
							<option value="0">禁用</option>
						</select> 
					</span> 
					<span class="spacing"><input type="submit" id="queryButton" value="查询" /></span>
<!-- 					<span class="spacing"><input type="button" id="excelExport" value="导出" /></span> -->
				</form>
			</div>
		</div>
		<table style="fitColumns:false;" id="grid" data-options="url:'alipay/list.html',method:'post'" title="商户列表">
			<thead>
				<th data-options="field:'id',width:50,resizable:true,align:'left'">商户ID</th>
				<th data-options="field:'shopName',width:100,resizable:true,align:'left'">商户名称</th>
				<th data-options="field:'channelName',width:80,resizable:true,align:'left'">所属渠道</th>
				<th data-options="field:'shopType',width:100,resizable:true,align:'left',formatter:formatter.shopType">商户类型</th>
				<th data-options="field:'shopArea',width:100,resizable:true,align:'left',formatter:formatter.shopArea">城市</th>
				<th data-options="field:'fullName',width:80,resizable:true,align:'left'">联系人</th>
				<th data-options="field:'phone',width:80,resizable:true,align:'left'">联系电话</th>
				<th data-options="field:'brokerage',width:60,resizable:true,align:'left'">佣金%</th>
				<th data-options="field:'createTime',width:80,resizable:true,align:'left'">创建时间</th>
				<th data-options="field:'status',width:60,resizable:true,align:'left',formatter:formatter.status">登陆状态</th>
				<th data-options="field:'payEnable',width:60,resizable:true,align:'left',formatter:formatter.payEnable">转账状态</th>
				<th data-options="field:'opt',width:180,resizable:true,align:'center',formatter:formatter.opt">操作</th>
			</thead>
		</table>
	</div>
	<!-- 编辑商户 -->
	<div class="hide-panel">
		<div id="businessEditDialog" style="width: 800px; height: 600px;"
			data-options="resizable:false,modal:true,closed: true">
			<form id="businessEditForm" class="form_style" method="post" onsubmit="return false;">
				<input type="hidden" name="userId" id="userId" value=""/>
				<div class="panel-header">
					<div class="panel-title">基本信息</div>
				</div>
				<div class="panel-content" id="menuMgrPanel">
					<div class="form-field">
						<label for="bsId">商户ID：</label> 
						<input class="easyui-validatebox" type="text" name="id" id="id" maxlength="30" readonly="readonly"/>
						<label for="shopName">商户名称：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="shopName" maxlength="32" data-options="required:true" readonly="readonly"/>
					</div>
					<div class="form-field">	
						<label for="shopType">商户类型：<font color="red"></font></label> 
						<select id="shopType" name="shopType" onchange="selectChildShopType();">
							<option value="">==请选择==</option> 
							<#if shopType?? && shopType?size gt 0> 
								<#list shopType as r>
									<option value="${r.id}">${r.name}</option> 
								</#list> 
							</#if>
						</select>
						<label for="shopSubclass">商户子类：<font color="red"></font></label> 
						<select id="shopSubclass" name="shopSubclass">
	                         <option value="">==请选择==</option>
	                    </select>
					</div>
					
					<div class="form-field">
						<label for="shopArea">地区：<font color="red"></font></label>
						<select name="shopArea" id="shopArea" onchange="selectChildShopArea();">
							<option value="">==请选择==</option> 
							<#if areas?? && areas?size gt 0>
							 	<#list areas as r>
									<option value="${r.id}">${r.name}</option> 
								</#list> 
							</#if>
						</select>
						<label for="shopCity">城市：<font color="red"></font></label>
						<select id="shopCity" name="shopCity">
	                         <option value="">==请选择==</option>
	                    </select>
	                </div>
					<div class="form-field">
						<label for="postalCode">邮编：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="postalCode" maxlength="4" data-options="required:true,validType:'zipcode'" readonly="readonly"/>
						<label for="shopAddress">地址：<font color="red">*</font></label> 
						<input class="easyui-validatebox" maxlength="200" type="text" name="shopAddress" id="shopAddress" maxlength="100" readonly="readonly" data-options="required:true" />
<!-- 						<input type="button" class="btn btn-success" onclick="google()" value="Google定位"/> -->
					</div>
					<div class="form-field">
						<label for="shopLog">经度：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="shopLog" id="shopLog" maxlength="25" data-options="required:true" readonly="readonly"/>
						<label for="shopLat">纬度：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="shopLat" id="shopLat" maxlength="25" data-options="required:true" readonly="readonly"/>
					</div>
					<div class="form-field">
						<label for="summary">简介：</label> 
						<textarea rows="3" cols="50" name="shopExplain" maxlength="255" readonly="readonly"></textarea>
					</div>
					
					<div class="form-field">
	                    <label for="shopCover">封面图片：<font color="red">*</font></label>
<!-- 	                    <span class="spacing"><input type="button" value="上传封面" id="phoAdd"> </span> -->
	                    <span>
	                    	<input type="hidden" id="shopCover" name="shopCover">
		                    <img id="imagePhoto" height="70" width="100">
		                    <input id="fileImage" type="file" style="display:none;" accept="image/*" size="30" name="fileselect[]" />
	                    </span>
                	</div>
					
				</div>
				
				<div class="panel-header">
					<div class="panel-title">联系方式</div>
				</div>
				<div class="panel-content" id="menuMgrPanel">
					<div class="form-field">
						<label for="fullName">联系人：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="fullName" maxlength="25" data-options="required:true" readonly="readonly"/>
						<label for="phone">联系电话：<font color="red">*</font></label> 
						<input class="easyui-validatebox" id="phone" type="text" name="phone" maxlength="13" data-options="required:true,validType:'telephone'" readonly="readonly"/>
					</div>
					<div class="form-field">
						<label for="email">Email：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="email" maxlength="50" data-options="required:true,validType:'email'" readonly="readonly"/>
					</div>
					<div class="form-field">
						<label for="phone1">短信通知1：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="phone2" maxlength="13" data-options="required:true,validType:'telephone'" readonly="readonly"/>
						<label for="phone2">短信通知2：</label> 
						<input class="easyui-validatebox" type="text" name="phone3" maxlength="13" data-options="validType:'telephone'" readonly="readonly"/>
					</div>
					<div class="form-field">
						<label for="phone3">短信通知3：</label> 
						<input class="easyui-validatebox" type="text" name="phone4" maxlength="13" data-options="validType:'telephone'" readonly="readonly"/>
						<label for="phone4">短信通知4：</label> 
						<input class="easyui-validatebox" type="text" name="phone5" maxlength="13" data-options="validType:'telephone'" readonly="readonly"/>
					</div>
				</div>
				<div class="panel-header">
					<div class="panel-title">转账信息</div>
				</div>
				<div class="panel-content" id="menuMgrPanel">
					<div class="form-field">
						<label for="brokerage">佣金%：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="brokerage" maxlength="50" data-options="required:true,validType:'money'" readonly="readonly"/>
						<label for="payEnable">转账状态：<font color="red">*</font></label> 
						<input type="radio" name="payEnable" value="1" checked="checked" readonly="readonly"/>
						<span class="check-label">启用</span> 
						<input type="radio" name="payEnable" value="0" />
						<span class="check-label">禁用</span>
					</div>
					<div class="form-field">
						<label for="bsb">BSB：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="bsb" maxlength="6" onkeyup="value=value.replace(/[^\d]/g,'')" readonly="readonly" data-options="required:true"/>
						<label for="account">ACCOUNT：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="account" maxlength="9" onchange="value=value.replace(/[^A-Za-z0-9]/g,'')" readonly="readonly" data-options="required:true"/>
					</div>
					<div class="form-field">
						<label for="bsb">NAME：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="accName" maxlength="32" data-options="required:true" readonly="readonly"/>
					</div>
				</div>
				<div class="panel-header">
					<div class="panel-title">登陆信息</div>
				</div>
				<div class="panel-content" id="menuMgrPanel">
					<div class="form-field">
						<label for="username">登陆名：<font color="red">*</font></label> 
						<input class="easyui-validatebox" type="text" name="username" maxlength="50" id="username" readonly="readonly" data-options="required:true,validType:'username'"/>
						<label for="status">登陆状态：<font color="red">*</font></label> 
						<input type="radio" name="status" value="1" checked="checked" readonly="readonly"/>
						<span class="check-label">启用</span> 
						<input type="radio" name="status" value="0" />
						<span class="check-label">禁用</span>
					</div>
				</div>
			</form>
		</div>
	</div>
	<!-- 二维码 -->
	<div class="hide-panel">
        <div id="qrCodeDialog" style="width:430px;height:380px;" data-options="resizable:false,modal:true,closed: true">
            <div id="qrcodeurl" align="center">
          	</div> 
          	<div id="qrcode" align="center">
          	</div>
        </div>
    </div>
</body>
</html>
</@compress>
